let obj = {  //Object
    name: "zhangsan",
    age: 18,
    headth: 100,
    say: function () { //Function
        console.log("hello");

    },
    drink: function () { //Function,
        console.log("drink");
        obj.headth--
    }
}

// obj.age++;//19

// obj.drink()//drink

// obj.somking = function () { //Function,
//     console.log("somking");
//     obj.headth--
// }

// meiGirl = "张若男"
// obj.meiGirl = "lisi"//meiGirl是字符串
// obj[meiGirl] = "lisi"//meiGirl是变量


delete obj.drink //删除属性

let obj2 = new Object({
    name: "lisi",
    age: 18,
    headth: 100
}) //Object



console.log(obj)

